export default class DropGetPointsItem {
  constructor() {
  }
  init(PIXI, numberTextureObj, number) {
    const container = new PIXI.Container()
    let numbers = [number]
    if(_.toString(number).length > 1) {
      numbers = _.toString(number).split('')
    }
    numbers.unshift('+')
    _.forEach(numbers, (number, index) => {
      let numberSprite = new PIXI.Sprite(numberTextureObj[number+'.png'])
      numberSprite.x = numberSprite.width/2 * index
      container.addChild(numberSprite)
    })

    return container
  }
}